//轿车类
public class Bus extends Vehicle {
	//属性  型号
	
	private int seat;
	
	public int  getSeat() {
		return seat;
	}

	public void setSeat(int seat) {
		this.seat = seat;
	}

	public Bus() {
		super();
	}


	public Bus(String brand, String vehicleID, int perRent,int seat) {
		super(brand, vehicleID, perRent);
		this.seat = seat;
	}

	@Override
	public float calcRent(int days) {
		float price=getPerRent()*days;
		if(days>3 && days>=7) {
			price*=0.9f;
		}else if(days>7 && days<=30) {
			price*=0.8f;
		}else if(days>30 && days<=150) {
			price*=0.7f;
		}else if(days>150){
			price*=0.6f;
		}
		return price;
	}

	@Override
	public String toString() {
		return super.toString()+"，座位数是：" + seat ;
	}
	
	
}
